<!DOCTYPE html>
<html lang="zh">

	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<link rel="stylesheet" type="text/css" href="index.css" media="screen" />
		<title>screen 对象的属性描述</title>
		<!--screen 对象上的属性-->
	</head>
	<body>
		<table summary="screen object propeties introduce">
			<caption>screen 对象的属性描述</caption>
			<!-- caption 标签必须紧随 table 标签之后。您只能对每个表格定义一个标题。通常这个标题会被居中于表格之上。 -->
			<thead>
				<tr>
					<th>属性</th>
					<th>值</th>
				</tr>
			</thead>
			<tbody id="tbody">
			</tbody>
			<tfoot>
				<tr>
					<td>这里就是一个简简单单的页脚</td>
				</tr>
			</tfoot>
		</table>
		<script type="text/javascript">
			var body = document.getElementById("tbody");
			var j = 1;
			for(var i in screen) {
				var tr = document.createElement("tr");
				if(j%2===0) tr.className="odd"
				var td1 = document.createElement("th");
				var td2 = document.createElement("td");
				td1.innerText = "screen." + i;
				td2.innerHTML = screen[i];
				tr.appendChild(td1);
				tr.appendChild(td2);
				body.appendChild(tr);
				j++;
			}
		</script>
	</body>

</html>